package com.zenchn.enums;

/**
 * 医院超时时间未升级枚举
 * @author 潘炳琦
 * @date 2021/06/08 17:03
 */
public enum HospitalOvertimeEnum {

    HOSPITAL_OVERTIME("00000000000000000000000050020001","超时时间"),
    ;

    /**
     * 发送渠道ID
     **/
    private String overtimeId;
    /**
     * 发送渠道中文描述
     **/
    private String overtimeName;

    public static String getGenerationName(String overtimeId) {
        for (HospitalOvertimeEnum e : values()) {
            if (e.getOvertimeId().equals(overtimeId)) {
                return e.getOvertimeName();
            }
        }
        return "";
    }

    HospitalOvertimeEnum(String overtimeId, String overtimeName) {
        this.overtimeId = overtimeId;
        this.overtimeName = overtimeName;
    }

    public String getOvertimeId() {
        return overtimeId;
    }

    public void setOvertimeId(String overtimeId) {
        this.overtimeId = overtimeId;
    }

    public String getOvertimeName() {
        return overtimeName;
    }

    public void setOvertimeName(String overtimeName) {
        this.overtimeName = overtimeName;
    }
}
